package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.validator.group.AddGroup;
import com.ruoyi.common.validator.group.UpdateGroup;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("uc_area")
public class UcArea extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Null(groups = {AddGroup.class})
    @NotNull(groups = {UpdateGroup.class})
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    @NotBlank(groups = {AddGroup.class,UpdateGroup.class})
    private String name;

    /** 全称 */
    @Excel(name = "全称")
    private String fullName;

    /** 编码 */
    @Excel(name = "编码")
    @NotBlank(groups = {AddGroup.class,UpdateGroup.class})
    private String code;

    /** 级别 */
    @Excel(name = "级别")
    private Integer level;

    /** 父级id */
    @NotNull(groups = {AddGroup.class,UpdateGroup.class})
    private Long parentId;

    /** 父级编码 */
    private String parentCode;

    /** 经度 */
    private String longitude;

    /** 纬度 */
    private String latitude;

    /** 排序 */
    @NotNull(groups = {AddGroup.class,UpdateGroup.class})
    private Integer sequence;

    private String idPath;

    /** $column.columnComment */
    @TableLogic
    private Integer delStatus;


}
